package sicau.carManager.entity;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 *      此类也是Excel表的导入类
 *      这个类就算有@Data注解也要加set方法，因为有Excel操作
 * </p>
 *
 * @author ITcz
 * @since 2021-02-05
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="FixedCarInformation对象", description="也作为Excel表导入导出类")
public class FixedCarInformation implements Serializable {

    private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.AUTO)
    @ExcelIgnore
    private Integer id;

    @ApiModelProperty(value = "办证人姓名")
    @ExcelProperty(index = 0, value = "办证人")
    private String applicant;

    @ApiModelProperty(value = "单位")
    @ExcelProperty(index = 1, value = "单位")
    private String unit;

    @ApiModelProperty(value = "行驶证所有人")
    @ExcelProperty(index = 2, value = "行驶证所有人")
    private String licenseOwner;

    @ApiModelProperty(value = "与办证人关系")
    @ExcelProperty(index = 3, value = "与办证人关系")
    private String relationshipWithApplicant;

    @ApiModelProperty(value = "车辆牌号")
    @ExcelProperty(index = 4, value = "车辆牌号")
    private String licensePlateNumber;

    @ApiModelProperty(value = "品牌型号")
    @ExcelProperty(index = 5, value = "品牌型号")
    private String model;

    @ApiModelProperty(value = "手机号码")
    @ExcelProperty(index = 6, value = "手机号码")
    private String phoneNumber;

    @ApiModelProperty(value = "校区")
    @ExcelIgnore
    private String campus;

    @ExcelIgnore
    private LocalDateTime createTime;

    @ExcelIgnore
    private LocalDateTime updateTime;

    public void setId(Integer id) {
        this.id = id;
    }

    public void setApplicant(String applicant) {
        this.applicant = applicant;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public void setLicenseOwner(String licenseOwner) {
        this.licenseOwner = licenseOwner;
    }

    public void setRelationshipWithApplicant(String relationshipWithApplicant) {
        this.relationshipWithApplicant = relationshipWithApplicant;
    }

    public void setLicensePlateNumber(String licensePlateNumber) {
        this.licensePlateNumber = licensePlateNumber;
    }

    public void setModel(String model) {
        this.model = model;
    }

    public void setPhoneNumber(String phoneNumber) {
        this.phoneNumber = phoneNumber;
    }

    public void setCampus(String campus) {
        this.campus = campus;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    public void setUpdateTime(LocalDateTime updateTime) {
        this.updateTime = updateTime;
    }
}
